package com.zhongkun.datahome.service.req.qry.assets;

import com.zhongkun.datahome.service.req.qry.PageQry;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author: lifengsheng
 * @Date: 2025/4/18 13:53
 * @Desc
 */
@Data
public class DataAssetsQry extends PageQry {
    @ApiModelProperty("资产id")
    private Long assetsId;

    @ApiModelProperty("资产ids")
    private List<Long> assetsIds;

    @ApiModelProperty("房号")
    private String roomNum;

    @ApiModelProperty("房产id")
    private Long houseId;

    @ApiModelProperty("分组类型ID，对应dataSettingId")
    private Long groupTypeId;

    @ApiModelProperty("资产标题")
    private String assetsTitle;

    @ApiModelProperty("资产状态，0已下架，1已上架")
    private Integer assetsStatus;

    public static DataAssetsQry of(List<Long> assetsIds) {
        DataAssetsQry qry = new DataAssetsQry();
        qry.setAssetsIds(assetsIds);
        return qry;
    }

    public static DataAssetsQry of(Long houseId, Long groupTypeId, Integer assetsStatus) {
        DataAssetsQry qry = new DataAssetsQry();
        qry.setHouseId(houseId);
        qry.setGroupTypeId(groupTypeId);
        qry.setAssetsStatus(assetsStatus);
        return qry;
    }
}
